<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <meta name="copyright" content="&copy; Copyright Simon Johnston 2009. All rights reserved."/>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

	<title>Importing RDF</title>

	<script type="text/javascript" src="../advanced/synchWithToc.js"></script>

	<link rel="stylesheet" href="../content/PLUGINS_ROOT/org.eclipse.help.webapp/advanced/breadcrumbs.css" charset="ISO-8859-1" type="text/css"></link>
	<script type="text/javascript" src="../content/PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>

	<link rel="stylesheet" href="../content/PLUGINS_ROOT/PRODUCT_PLUGIN/book.css" type="text/css"></link>
	<script type="text/javascript">if( self == top ){ window.location.replace( "../index.jsp?nav=/0_0");}</script>
  </head>

  <body>

    <h2>Importing RDF</h2>
	<p>
	  It's important when developing and testing SPARQL queries to be able to
	  do so against reasonable test data. While it would be possible to store, 
	  and version, the actual Jena store itself this is impractical for a 
	  number of reasons. For a start it isn't possible to edit the store in a
	  simple way and it's not easy to produce deltas for a binary store. So
	  JenaTool allows the developer to create and store test data in text 
	  files in one of a number of representations (see <a href="content.html">
	  RDF Content</a>) and import this data into a store.
	</p>
	<p>
	  RDF content can be imported in one of two ways, the first is to right-click
	  on an RDF resource in the workspace and select the <code>Jena->Quick Import
	  </code> context action. The second, and Eclipse-centric way is to use the
	  standard <code>File->Import...</code> menu and follow the usual process.
	  The following shows the standard Eclipse import dialog with the new
	  <code>Jena</code> category opened.
	</p>
	<p>
  	  <img src="images/jt-import.png"/>
  	</p>
  	<p>
  	  Once you select the right import action you'll see the following RDF specific
  	  dialog, the details of the fields are described below.
  	</p>
  	<p>
	  <img src="images/jt-import-rdf.png"/>
  	</p>
  	<dl>
      <dt>Import URL</dt><dd>the URL of the resource to import.</dd>
	  <dt>Format</dt><dd>the format of the resource to import.</dd>
	  <dt>Target Dataset</dt><dd>the dataset to import the resource into.</dd>
	  <dt>Graph Name URL</dt><dd>if specified will create a named graph in the store, otherwise the resource is added to the default graph.</dd>
	  <dt>Base Name URL</dt><dd>if the resource may contain relative URLs the base name can be used to construct absolute URLs.</dd>
  	</dl>
  </body>
  
</html>